package com.cloudkinto.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cloudkinto.entity.CompanyAccountDo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloudkinto.extentity.CompanyAccountDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 * @author ding
 * @since 2020-06-10
 */
@Mapper
public interface CompanyAccountDao extends BaseMapper<CompanyAccountDo> {
    List<CompanyAccountDto> getAccountDetails(IPage<CompanyAccountDto> page, Date startDate, Date endDate, @Param("map") Map<String, String> map);

    List<CompanyAccountDto> getAccountDetails(Date startDate, Date endDate, @Param("map") Map<String, String> map);


    int updateAmountById(Long id, Double amount);
}
